package deibay.network;

import java.io.Serializable;
import java.rmi.Remote;
import deibay.server.events.Event;
import deibay.users.User;

public interface IBackEnd extends Remote{
	User authenticate(IFrontEnd frontendServer, String login, String password) throws java.rmi.RemoteException;
	User register(IFrontEnd frontendServer, String login, String password, String mail, String address, String role) throws java.rmi.RemoteException;
	void receiveEvent(Event event) throws java.rmi.RemoteException;	
}
